package com.swinboo.im.entity.param;

import com.huang.entity.request.ParamCheck;
import com.huang.entity.request.ParamCheckUtils;
import lombok.Data;

import java.util.Date;

/**
 * @author Swinboo
 * @date 2022-03-19 21:09
 * @description:
 */
@Data
public class SendSingleMsgParam implements ParamCheck {
    private String type;
    private String content;
    private String fromUId;
    private String toUId;

    @Override
    public void check() {
        ParamCheckUtils.noEmpty(fromUId,"发送者不能为空");
        ParamCheckUtils.noEmpty(toUId,"接收者不能为空");
        ParamCheckUtils.noEmpty(type,"消息类型不能为空");
        ParamCheckUtils.noEmpty(content,"消息内容不能为空");
    }
}
